import { useConfigStore } from '@/stores/config'

const configStore = useConfigStore()

export function getSlogans(type) {
  const enabled = (configStore.get('chat.show_slogan') || []).includes(type)
  if (enabled) {
    const slogans = (configStore.get('chat.slogans.' + type) || '')
      .split('\n')
      .filter((s) => s.length > 0)
    if (slogans.length) return slogans
  }
  return []
}
